﻿namespace TaxAssistantBase
{
    public class CloudResultStateEnum
    {
        public static int ApiNoAccess = -9999;//api无法访问
        public static int NetTryEx = -10000;//.net捕获异常

        public static int SUCCESS = 0;
        public static int LOSE = -1;
        public static int LOGIN_NAME_MISS = 1;
        public static int PASSWORD_MISS = 2;
        public static int AUTHORIZE_FAILURE = 3;
        public static int PASSWORD_ERROR = 4;
        public static int LOGIN_NAME_REGISTED = 5;
        public static int TOKEN_INVALID = 6;
        public static int ADMINS_NOT_EXIST = 7;
        public static int UPLOAD_FILE_EMPTY = 8;
        public static int AREA_NOT_EXIST = 9;
        public static int UPLOAD_FILE_FAILURE = 10;
        public static int COMPANY_TAXNO_MISS = 11;
        public static int COMPANY_TAXNO_EXIST = 12;
        public static int COMPANY_NAME_MISS = 13;
        public static int COMPANY_NAME_EXIST = 14;
        public static int COMPANY_NOT_EXIST = 15;
        public static int EMPLOYEE_NAME_MISS = 16;
        public static int IDCARD_MISS = 17;
        public static int IDCARD_ERROR = 18;
        public static int IDCARD_ALREADY_EXIST = 19;
        public static int EMPLOYEE_NOT_EXIST = 20;
        public static int STATE_INVALID = 21;
        public static int DECLARE_ID_NOT_EXIST = 22;
        public static int SESSION_EXPIRED = 23; //会话过期
        public static int SIGN_ERROR = 24; //签名错误
        public static int TIMESTAMP_ERROR = 25; //时间戳错误
        public static int OPEN_ID_MISS = 26;//openid丢失
        public static int USER_OPEN_ID_EXIST = 27;//用户已绑定openid
        public static int OPEN_ID_EXIST = 28;//openid存在
        public static int MP_ERRCODE = 29;//微信errcode
        public static int MP_REQUER_ERROR = 30;//微信请求服务器错误
        public static int PARAM_ERROR = 31;//参数有误
        public static int DECLARE_NOT_EXIST = 32;//参数有误
        public static int DB_ERROR = 33;//数据库错误
        public static int OPEN_ID_NOT_EXIST = 34;//openid不存在

        public static int NOT_ROLE = 35;//没有权限


        public static int AREA_ID_ERROR = 100; //区域ID错误
        public static int DECLARE_PASSWORD_MISS = 101; //请填写申报密码
        public static int UTF8_ENCODE_ERROR = 102; //UTF8编码错误
        public static int COMPANY_ID_ERROR = 103; //公司ID错误
        public static int EMPLOYEE_ALREADY_EXIST = 104; //公司已存在
        public static int ROLE_TYPE_ERROR = 105; //角色类型错误
        public static int USER_ID_ERROR = 106; //用户ID错误
        public static int USER_NOT_EXIST = 107; //用户不存在
        public static int NOT_AUTHORIZATION = 108; //未授权
        public static int DECLARE_DATE_ERROR = 109; //申报日期错误

        public static int SERVICE_EXCEPTION = 10000;//服务器异常
    }
}
